package org.gd.rest.jersey.server;

import com.google.inject.Singleton;

import java.util.concurrent.atomic.AtomicInteger;

@Singleton
public class Counter {

    private final AtomicInteger counter = new AtomicInteger(0);

    public int getNext() {
        return counter.incrementAndGet();
    }
}
